.home-hot-component {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    position: relative;

    .card-container {
        width: inherit;
        display: grid;
        grid-template-columns: repeat(
            auto-fill,
            minmax(255px, 1fr)
        ); /* 自动填充列，最小宽度250px，最大占用空间均等 */
        gap: 16px; /* 卡片间的间距 */
        position: relative;

        .card-item {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: rgba(244, 244, 244, 0.02);
            border-radius: 8px;
            position: relative;
            border: 2px solid #282828;
            cursor: pointer;
            transition-property: color, background-color, border-color,
                text-decoration-color, fill, stroke, opacity, box-shadow,
                transform, filter, backdrop-filter;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 0.5s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 0.5s;
            padding: 6px;
            max-height: 200px;
            overflow: hidden;

            &:hover {
                border-color: var(--xfxjPrimary);
            }

            &:hover .home-card-setting {
                opacity: 1;
            }

            .home-card-content {
                width: 100%;
                min-height: 150px;
                padding: 10px;
                border-radius: 5px;
                overflow: hidden;

                .home-cont-head {
                    display: flex;
                    align-items: center;
                    color: rgba(255, 255, 255, 0.82);
                    font-size: 1.125rem;
                }

                .home-line {
                    width: 100%;
                    height: 1px;
                    background: rgba(244, 244, 244, 0.09);
                    margin: 8px 0px;
                }

                .home-cont-t {
                    overflow: hidden;
                    color: var(--xfxjNoSelectText);
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 6;
                    line-clamp: 6;
                }
            }
        }

        .card-item-active {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            background: rgba(244, 244, 244, 0.02);
            border-radius: 8px;
            position: relative;
            border: 2px solid #282828;
            cursor: pointer;
            transition-property: color, background-color, border-color,
                text-decoration-color, fill, stroke, opacity, box-shadow,
                transform, filter, backdrop-filter;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 0.5s;
            transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
            transition-duration: 0.5s;
            padding: 6px;
            max-height: 200px;
            overflow: hidden;

            &:hover .home-card-content {
                transform: rotate(0.37deg) translate(6%, 7%);
            }

            &:hover .home-card-setting {
                opacity: 1;
            }

            .home-card-content {
                width: 100%;
                height: 100%;
                padding: 10px;
                border-radius: 5px;
                background-color: rgb(34, 34, 34);
                overflow: hidden;
                transition:
                    background-color 0.3s ease 0s,
                    transform 400ms cubic-bezier(0.66, 0.15, 0.16, 1.58) 0s;

                .home-cont-head {
                    display: flex;
                    align-items: center;
                    color: rgba(255, 255, 255, 0.82);
                    font-size: 1.125rem;
                }

                .home-line {
                    width: 100%;
                    height: 1px;
                    background: rgba(244, 244, 244, 0.09);
                    margin: 8px 0px;
                }

                .home-cont-t {
                    overflow: hidden;
                    color: var(--xfxjNoSelectText);
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 6;
                    line-clamp: 6;
                }
            }
        }

        .home-card-setting {
            z-index: 10;
            position: absolute;
            top: 16px;
            right: 16px;
            width: 20px;
            height: 20px;
            background-color: rgb(41, 42, 44);
            border: none;
            border-radius: 50%;
            color: rgba(244, 244, 244, 0.65);
            background-color: rgb(41, 42, 44);
            opacity: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: rgba(244, 244, 244, 0.12) 0px 0px 0px 1px inset;
            transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;
        }

        .home-card-start {
            z-index: 9;
            position: absolute;
            top: 16px;
            right: 16px;
            width: 20px;
            height: 20px;
            border: none;
            color: rgba(244, 244, 244, 0.65);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;
        }
    }
}

.home-hot-popover {
    .home-hot-popover-slot {
        width: 100%;
        min-height: 40px;
        display: flex;
        flex-direction: column;
        color: var(--xfxjNoSelectText);
        font-size: 13px;
        gap: 6px;

        &-item {
            width: 100%;
            height: 32px;
            padding: 0 8px;
            font-size: 13px;
            font-weight: 500;
            font-style: normal;
            font-stretch: normal;
            cursor: pointer;
            border-radius: 6px;
            line-height: 32px;
            transition:
                background 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s,
                color,
                opacity;

            &:hover {
                background: rgba(244, 244, 244, 0.06);
            }
        }
    }
}
